package me.magicall.coll.wrap;

import java.io.Serializable;
import java.util.ListIterator;

import me.magicall.coll.unmodifiable.UnmodifiableListIteratorTemplate;
import me.magicall.tagInterfaces.Wrapper;


public class UnmodifiableWrapListIterator<E> extends UnmodifiableListIteratorTemplate<E>//
		implements Wrapper, Serializable, ListIterator<E> {
	private static final long serialVersionUID = -3594061630789916581L;

	private final ListIterator<E> i;

	public UnmodifiableWrapListIterator(ListIterator<E> i) {
		super();
		this.i = i;
	}

	public boolean hasNext() {
		return i.hasNext();
	}

	public boolean hasPrevious() {
		return i.hasPrevious();
	}

	public E next() {
		return i.next();
	}

	public int nextIndex() {
		return i.nextIndex();
	}

	public E previous() {
		return i.previous();
	}

	public int previousIndex() {
		return i.previousIndex();
	}

	@Override
	public String toString() {
		return i.toString();
	}
}
